package com.glela.packet.mapper;

import com.glela.packet.model.RedPacket;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface RedPacketBizMapper {

  int batchInsert(List<RedPacket> list);

  BigDecimal queryTotalRedPacketByUserId(@Param("userId")long userId,@Param("nowDate") Date nowDate);

  int c(Long userId, int type);
}